package com.blockchain.front.servlets.security;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.blockchain.framework.service.ServiceSession;
import com.blockchain.front.service.security.SecurityManage;
import com.blockchain.util.parser.IntegerParser;

public class Qbbz extends AbstractSceurityServlet {

	private static final long serialVersionUID = 1L;
	@Override
	protected void processPost(HttpServletRequest request, HttpServletResponse response, ServiceSession serviceSession)
			throws Throwable {
		int bid = IntegerParser.parse(request.getParameter("bid"));
		String bq = request.getParameter("bq");
		String qbdz = request.getParameter("qbdz");
		String jymm = request.getParameter("jymm");
		SecurityManage manage = serviceSession.getService(SecurityManage.class);
		manage.addQbdz(bq, bid, qbdz, jymm);
		sendRedirect(request, response, getController().getURI(request, Qbbz.class));
	}

}